import { ajax } from '@/utils'

import { editServiceProvider } from './serviceProviderTypes'

export default {
  /**详情 */
  getDetail(id: any): Promise<editServiceProvider> {
    return ajax.get(`/yswy-zy-activity/manage/serviceProvider/detail/${id}`)
  },
  //编辑服务商
  editServiceProvider(data): Promise<editServiceProvider> {
    return ajax.post(`/yswy-zy-activity/manage/serviceProvider/edit`, data)
  }
}
